package org.acra.sender;

import android.net.Uri;
import android.util.Log;
import java.io.IOException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import org.acra.ACRA;
import org.acra.ReportField;

public class b
  implements d
{
  private final Uri a = null;

  private Map a(Map paramMap)
  {
    int i = 0;
    ReportField[] arrayOfReportField1 = ACRA.getConfig().d();
    if (arrayOfReportField1.length == 0);
    for (ReportField[] arrayOfReportField2 = org.acra.e.c; ; arrayOfReportField2 = arrayOfReportField1)
    {
      HashMap localHashMap = new HashMap();
      int j = arrayOfReportField2.length;
      int k = 0;
      if (i < j)
      {
        ReportField localReportField = arrayOfReportField2[i];
        switch (c.a[localReportField.ordinal()])
        {
        default:
          localHashMap.put("entry." + k + ".single", paramMap.get(localReportField));
        case 1:
        case 2:
        }
        while (true)
        {
          k++;
          i++;
          break;
          localHashMap.put("entry." + k + ".single", "'" + (String)paramMap.get(localReportField));
          continue;
          localHashMap.put("entry." + k + ".single", "'" + (String)paramMap.get(localReportField));
        }
      }
      return localHashMap;
    }
  }

  public void a(org.acra.b.c paramc)
  {
    Uri localUri;
    if (this.a == null)
    {
      String str = ACRA.getConfig().L();
      Object[] arrayOfObject = new Object[1];
      arrayOfObject[0] = ACRA.getConfig().i();
      localUri = Uri.parse(String.format(str, arrayOfObject));
    }
    while (true)
    {
      Map localMap = a(paramc);
      localMap.put("pageNumber", "0");
      localMap.put("backupCache", "");
      localMap.put("submit", "Envoyer");
      try
      {
        URL localURL = new URL(localUri.toString());
        Log.d(ACRA.LOG_TAG, "Sending report " + (String)paramc.get(ReportField.REPORT_ID));
        Log.d(ACRA.LOG_TAG, "Connect to " + localURL);
        org.acra.d.c localc = new org.acra.d.c();
        localc.a(ACRA.getConfig().c());
        localc.b(ACRA.getConfig().E());
        localc.c(ACRA.getConfig().p());
        localc.a(localURL, HttpSender.Method.POST, org.acra.d.c.a(localMap), HttpSender.Type.FORM);
        return;
        localUri = this.a;
      }
      catch (IOException localIOException)
      {
        throw new e("Error while sending report to Google Form.", localIOException);
      }
    }
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     org.acra.sender.b
 * JD-Core Version:    0.6.2
 */